﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.User
{
    public partial class change_level : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            int level = int.Parse(Request.QueryString["level"]);

            var get_user = new TblUserController().FetchAll().Where(x => x.UserId == id).Single();

            new TblUserController().Update(get_user.UserId, get_user.NumberStudy, get_user.UserName, get_user.UserPass, get_user.FullName, get_user.BirthDay, get_user.Phone, get_user.Avatar, get_user.Email, get_user.AddressMail, get_user.Address, get_user.Facebook, get_user.Sex, level,get_user.ClassX, get_user.Active, get_user.SignInDate,get_user.Wallpaper, get_user.Note);
        }
    }
}